package edu.njust.Service.Room;

import edu.njust.domain.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomService {
    public boolean deleteById(int id);
    public boolean insertAll(Room room);
    public	Room selectById(int id);
    public boolean updateById(Room room);
    //分页模糊查询
    public List<Room> pageFuzzyselect(String roomNumber, int start,int pageSize);
    //分页模糊查询总条数
    public int countFuzzyselect(String roomNumber);
    //查询全部
    public List<Room> selectAll();
    //根据客房等级来查询
    public List<Room> selectByLeveId(int id);
    //ajax 验证是否存在 此房间号
    public boolean selectYZ(String roomNumber);
    // 非本派所用  安排房间时 需要改变当前房间的房态
    public boolean updateByIdToRoomState(Room room);
    //非本派所用  查询房间信息
    public  List<Room> selectInformation(String roomNumber);
    //非本派所用  客服等级来查询房间信息
    public  List<Room> levelSelectInformation(int guestRoomLevelID);

    //查房间剩余数量，按id查询
    public int countselectByLeveId(int id);

    //修改房间状态为预定
    public boolean updateroomStateone(int id);

    //修改房间状态为入住
    public boolean updateroomStatetwo(int id);
    //修改房间状态为未入住
    public boolean updateroomStatethree(int id);
    public int selectidbyname(String roomNumber);

}
